Interface IPropertyMigrationBuilder<TProps, TProp>
Builder for configuring migration of specific property
public interface IPropertyMigrationBuilder<TProps, TProp> where TProps : class
Methods
ComputedFrom(Expression<Func<TProps, TProp>>)
Computed field from other fields.
IPropertyMigrationBuilder<TProps, TProp> ComputedFrom(Expression<Func<TProps, TProp>> expression)
DefaultValue(TProp)
Default value for new field.
IPropertyMigrationBuilder<TProps, TProp> DefaultValue(TProp value)
OnTypeChange<TFrom, TTo>()
Field type change with custom conversion.
ITypeChangeMigrationBuilder<TProps, TFrom, TTo> OnTypeChange<TFrom, TTo>()
Transform(Expression<Func<TProp, TProp>>)
Transform values without type change.
IPropertyMigrationBuilder<TProps, TProp> Transform(Expression<Func<TProp, TProp>> transformer)
When(Expression<Func<TProps, bool>>)
Condition for applying migration.
IPropertyMigrationBuilder<TProps, TProp> When(Expression<Func<TProps, bool>> condition)